package com.flxz.user.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.flxz.common.annotation.Excel;
import com.flxz.common.core.domain.BaseEntity;

/**
 * 用户签到对象 user_sign_in
 * 
 * @author flxz
 * @date 2024-01-15
 */
public class UserSignIn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 签到ID */
    private Long signInId;

    /** 用户ID，关联sys_user.user_id */
    @Excel(name = "用户ID")
    private Long userId;

    /** 签到日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "签到日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date signDate;

    public void setSignInId(Long signInId) 
    {
        this.signInId = signInId;
    }

    public Long getSignInId() 
    {
        return signInId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setSignDate(Date signDate) 
    {
        this.signDate = signDate;
    }

    public Date getSignDate() 
    {
        return signDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("signInId", getSignInId())
            .append("userId", getUserId())
            .append("signDate", getSignDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
